package com.naiterui.ehp.bs.recommend.service;

import com.naiterui.common.repository.page.PageParamVO;
import com.naiterui.common.repository.page.PageVO;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.recommend.vo.CommonPrescriptionVO;

/**
 * 常用处方
 * 
 * @author yangfuya
 */
public interface ICommonPrescriptionService {

    /**
     * 保存或修改常用处方
     * 
     * @param commonPrescriptionVO
     * @throws BusinessException
     */
    void saveOrUpdate(CommonPrescriptionVO commonPrescriptionVO) throws BusinessException;

    /**
     * 分页获取常用处方
     * 
     * @param doctorId
     * @param pageVO
     * @return
     * @throws BusinessException
     */
    PageVO<CommonPrescriptionVO> page(Long doctorId, PageParamVO pageVO) throws BusinessException;

    /**
     * 获取常用处方详情
     * 
     * @param doctorId
     * @param id
     * @return
     * @throws BusinessException
     */
    CommonPrescriptionVO getById(Long doctorId, Long id) throws BusinessException;

    void deleteById(Long doctorId, Long id) throws BusinessException;
}